package com.bkgy.modular.tpdidata_cal1630.controller;

import com.bkgy.modular.tpdidata_cal1630.service.TPdiDataCal1630Service;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Author:Lipeng Zhao
 * Description:
 *
 * @Date:Created In 14:36 2025/6/19
 */
@RestController
@RequestMapping("/tbdiDataCal1630")
public class TbdiDataCal1630Controller {

    @Autowired
    private TPdiDataCal1630Service tPdiDataCal1630Service;


    /**
     * 分页查看记录
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findByPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findDataByPage(@RequestBody String data) {
        return tPdiDataCal1630Service.findDataByPage(data);
    }

    /**
     * 根据卷号查询钢卷信息
     *
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findSteelGradeByInDocNo"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findSteelGradeByInDocNo(@RequestBody String data) {
        return tPdiDataCal1630Service.findSteelGradeByInDocNo(data);
    }

}
